//
//  JQFYPayTypeCollectionViewCell.m
//  JQFY
//
//  Created by 代辉 on 2017/10/16.
//  Copyright © 2017年 yannis. All rights reserved.
//

#import "JQFYPayTypeCollectionViewCell.h"


@interface JQFYPayTypeCollectionViewCell ()

@property (nonatomic,strong) UIImageView *payTypeImageView;

@end

@implementation JQFYPayTypeCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI
{
    self.backgroundColor = [UIColor groupTableViewBackgroundColor];
    self.payTypeImageView = [UIImageView new];
    [self.contentView addSubview:self.payTypeImageView];
    [self.payTypeImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.contentView);
    }];
}
- (void)setImageName:(NSString *)imageName
{
    _imageName = imageName;
    self.payTypeImageView.image = [UIImage imageNamed:imageName];
}
@end
